home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / mac / files / ID99MENU.DIR / 00022_demo button script.ls < prev    next >
Encoding:
Text File  |  1999-04-29  |  472 b   |  28 lines

  1. property s
  2. global demos, currtitle
  3.  
  4. on beginSprite me
  5.   s = me.spriteNum
  6. end
  7.  
  8. on prepareFrame me
  9.   if currtitle = 0 then
  10.     set the member of sprite s to "dim demo"
  11.     exit
  12.   end if
  13.   thedemo = getAt(demos, currtitle)
  14.   if thedemo <> EMPTY then
  15.     set the member of sprite s to "demo button"
  16.   else
  17.     set the member of sprite s to "dim demo"
  18.   end if
  19. end
  20.  
  21. on mouseUp
  22.   if currtitle = 0 then
  23.     exit
  24.   end if
  25.   thedemo = getAt(demos, currtitle)
  26.   godemo(thedemo)
  27. end
  28.